import { createRouter, createWebHashHistory } from 'vue-router'
import { AppRoutes } from '@router/routes'
import { beforeEach, afterEach } from '@router/guards'

const router = createRouter({
  history: createWebHashHistory(),
  routes: AppRoutes,
})

router.beforeEach(beforeEach) 

router.afterEach(afterEach)

export default router
